<link rel="stylesheet" type="text/css" media="all" href="${staticserver}/js/common/jq-dateinput/ui.datepicker.css" title="win2k-cold-1" />
<Script Language="JavaScript" type="text/JavaScript" src="${staticserver}/js/common/jq-dateinput/ui.datepicker.js"></Script>
<Script Language="JavaScript" type="text/JavaScript" src="${staticserver}/js/common/jq-dateinput/DatePicker.js"></Script>
<div id="AllWrap">
<div class="success clearfix">
<div class="span-1 pic"></div>
<div class="span-10">
<h3>恭喜您已注册本店会员</h3>
</div>
</div>
<div class="FormWrap">
<ul class="list">
	<li>请补充下列信息</li>
	<li>本商店将最大限度保护您的隐私。</li>
	<li>当然您不购买商品也可以成为本站用户，请填写下面的信息注册。</li>
</ul>
<form class="section" id="form_saveMember_info"
	action="member_register.html" method="post">
	<input type="hidden" value="${member.member_id}" name="memberid">
	<input type="hidden" name="action" value="supply" />
<div id="crateAdmin" class="division">
<table cellspacing="0" cellpadding="0" border="0" width="100%"
	class="forform">
	<tbody>
		<tr>
			<th>姓名</th>
			<td><input type="text"   class="inputstyle _x_ipt" name="name"></td>
		</tr>
		<tr>
			<th>性别</th>
			<td><input type="radio" value="1" name="sex" checked="true"><label>男</label><input
				type="radio" value="0" name="sex"><label>女</label></td>
		</tr>
		<tr>
			<th>出生日期</th>
			<td>
			<input type="text" value="1980-01-01" readonly="true"  name="birthday"  class="dateinput" >
			</td>
		</tr>
		<tr>
			<th>地区</th>
			<td>

			<select name="province_id" id="member_province_id"></select>&nbsp;
			<input type="hidden" name="province" id="member_province" value="${member.province!''}"/>
			<select name="city_id" id="member_city_id"></select>&nbsp;
			<input type="hidden" name="city" id="member_city" value="${member.city!''}"/>
			<select name="region_id" id="member_region_id"></select>&nbsp;
			<input type="hidden" name="region" id="member_region" value="${member.region!''}"/>
			
			</td>
		</tr>
		<tr>
			<th>联系地址</th>
			<td><input type="text"   class="inputstyle _x_ipt" name="address"></td>
		</tr>
		<tr>
			<th>邮编</th>
			<td><input type="text"  class="inputstyle _x_ipt" name="zip"></td>
		</tr>
		<tr>
			<th>移动电话</th>
			<td><input type="text" required="false" class="inputstyle _x_ipt" name="mobile"></td>
		</tr>
		<tr>
			<th>固定电话</th>
			<td><input type="text" required="false" class="inputstyle _x_ipt" name="tel"></td>
		</tr>
		<tr>
			<th>安全问题</th>
			<td><input type="text" required="false" class="inputstyle _x_ipt" name="pw_question"></td>
		</tr>
		<tr>
			<th>回答</th>
			<td>
			<input type="text" required="false" class="inputstyle _x_ipt" name="pw_answer">
			</td>
		</tr>
 
		<tr>
			<th></th>
			<td><input type="submit" value="确认" class="buttonstyle"></td>
		</tr>
	</tbody>
</table>
</div>
</form>
</div>

<script>
$(function(){
	$("#member_province_id").empty();
	$("<option value='-1'>请选择...</option>").appendTo($("#member_province_id"));
	<#list provinceList as province>
		$("<option value='${(province.region_id)?c}' <#if member.province_id == province.region_id>selected</#if> >${province.local_name}</option>").appendTo($("#member_province_id"));
	</#list>

	$("#member_province_id").change(function(){
		$("#member_province").val($("#member_province_id option:selected").text());
		$("#member_city_id").empty();
		$("#member_city_id").hide();
		$("#member_region_id").empty();
		$("#member_region_id").hide();
		$.ajax({
			method:"get",
			url:"shop/area!list_city.do?province_id=" + $("#member_province_id").attr("value"),
			dataType:"html",
			success:function(result){
				$("#member_city_id").show();
				$(result).appendTo($("#member_city_id"));
			},
			error:function(){
				alert("异步失败");
			}
		});
	});
	$("#member_city_id").change(function(){
		$("#member_city").val($("#member_city_id option:selected").text());
		$("#member_region_id").empty();
		$("#member_region_id").hide();
		$.ajax({
			method:"get",
			url:"shop/area!list_region.do?city_id=" + $("#member_city_id").attr("value"),
			dataType:"html",
			success:function(result){
				$("#member_region_id").show();
				$(result).appendTo($("#member_region_id"));
			},
			error:function(){
				alert("异步失败");
			}
		});
	});
	$("#member_region_id").change(function(){
		$("#member_region").val($("#member_region_id option:selected").text());
	});
});
</script>
